<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .father {
            width: 200px;
            height: 200px;
            background-color: yellow;
            overflow: hidden;
        }

        .son {
            margin: 0px auto;
            width: 100px;
            height: 100px;
            background-color: red;
            margin-top: 50%;
            transform: translateY(-100%);



        }

        .son:hover {
            box-shadow: 10px 10px 10px black;
            transform: rotate3d(1, 2.0, 3.0, 100deg);
            transition: 5s;
            border-radius: 50px;
            margin-top: 20px;
            margin-top: 10px;
        }
    </style>
</head>

<body>
    <div class="father">
        <div class="son"></div>
    </div>
</body>

</html>